import request from '@/utils/request'
// 获取全部能效预警表格数据
export function getDashs(params) {
  return request({
    url: '/api/practice01/efficiency/find',
    method: 'get',
    params
  })
}
// 删除能效预警表格数据
export function delDash(id) {
  return request({
    url: `/api/practice01/efficiency/delete/${id}`,
    method: 'delete'
  })
}

// 新增能效预警表格数据
export function addDash(data) {
  return request({
    url: '/api/practice01/efficiency/insert',
    method: 'post',
    data
  })
}

// 获取单项能效预警表格数据
export function getDash(id) {
  return request({
    url: `/api/practice01/efficiency/find/${id}`,
    method: 'get'
  })
}

export function updateDash(data) {
  return request({
    url: '/api/practice01/efficiency/update',
    method: 'put',
    data
  })
}
